find missing frequency x and y when median is given